-
Notifications
You must be signed in to change notification settings - Fork 402
Macos ci #1339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Macos ci #1339
Conversation
The CI run failed because for some reason it didn't manage to delete the temp directory it creates in |
Thanks for working on this! I think I've seen the temp dir removal issue myself as well. Would be great if we could figure out a workaround. If we can't, we should allow it to fail only on macOS. |
e94114a
to
34a0d71
Compare
ad44019
to
2e6e2c9
Compare
17a1477
to
eaa8ce1
Compare
f6c04d4
to
4331cfa
Compare
511147b
to
cf77da1
Compare
Also use venv instead of global install brew/python doesn't like installing python packages globally: ``` error: externally-managed-environment × This environment is externally managed ```
vipw seems to have -d as an option on macos now. Partially reverts ccf7bf6 "test(dmesg,vipw): expect no options on macOS"
It seems there is some behaviour differences regarding the order completions are returned in between linux and macos, specifically regarding sorting of upper case and lowercase letters. Sorting them ourselves in the tests makes it consistent.
There is a BSD licensed version of rsync at https://github.com/kristapsdz/openrsync, and its what comes with macOS
On macOS we need sudo to delete them, maybe because they were created by a different prcoess?
return str(tmpdir) | ||
yield str(tmpdir) | ||
if sys.platform == "darwin": | ||
assert_bash_exec(bash, "sudo rm -rf %s/*" % tmpdir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't love running sudo in the test suite, but I couldn't find a another way to delete these files
See #726
Cherry-picked from here: